import java.util.Date;</br>
import javax.persistence.Column;</br>
import javax.persistence.Entity;</br>
import javax.persistence.Table;</br></br>

@Entity</br>
@Table(name="${tableName}")</br>
public class ${tableName} {</br>

	<#list dBFieldBeanList as dBFieldBean>
	/**</br>
	 * ${dBFieldBean.remark}</br>
	 */</br>
	@Column(name = "${dBFieldBean.fieldName}")</br>
	private ${dBFieldBean.javaType} ${dBFieldBean.javaFieldName};</br>	
	</br>
	</#list>
	
}
</br>

DAO: extends PagingAndSortingRepository<WebSourceBean, String></br>


Service: @Service("webSourceService")</br>  @Autowired</br>


    public Page<UploadFileBean> findByAppid(String appid,int page,int size)  {
    	Sort sort=new Sort(Direction.DESC,"createtime");
		PageRequest pageReqeust=new PageRequest(page,size,sort);
    	return null;
    }
